class Kongtiao():
    def __init__(self):
        self.__brand = ''
        self.__price = 0

    def get1(self):
        return self.__brand,self.__price

    def set1(self, brand, price):
        self.__brand = brand
        self.__price = price

    def open(self):
        print("空调开机了!")

    def close(self, minute: int):
        print(f"空调将在{minute}分钟后自动关闭")


if __name__ == "__main__":
    ko = Kongtiao()
    ko.set1('格力', '2999.0')
    ko.get1()
    ko.open()
    ko.close(60)